Version created Feb 24, 2024
Some
general notes:
- If
you use this mod in MP ONLY THE HOST SHOULD HAVE IT ENABLED. This is because it has
been set up to pass network traffic and if everyone is running it then each
instance of the emitter will create explosions and fires and transmit
details to everyone else. If more than one person in the mission is
running the mod this will quickly drown the mission in smoke etc., and
bring it to its knees. The benefit of enabling network traffic and have
only the host generate effects is that everyone in the mission will see
the same thing. If network traffic is disabled. then each player could run
the mod but people would only see their own created effects. i.e. so
saying west of the large smoke would mean something different to each
player.
- Changing
the frequency of each effect being generated is done by changing the line
starting with "P=" in file staticexplosions.txt. This is
essentially a probability of the effect being triggered or the unit being
spawned. Note that this value is checked extremely frequently by the game
and so values should be kept quite (surprisingly) small to avoid too many
instances of an effect or unit being triggered. Especially true
for units as they don't despawn and so the
number of units will accumulate over time. If you fiddle with the values
and increase the chance of triggering too much don't be surprised that it
causes you problems.
- All
effects are based on the location of the player running the mod. So the
min and max distance is based on this player’s location. Keep this in mind
or else expect to have explosions etc. be triggered so close that things
like taking off becomes pretty difficult. E.g. spawning an enemy flak gun
on your own airfield will ruin your day. The line to tweak in file
staticexplosions.txt for this is the one starting with "Range="
and the first value is the minimum distance from the player running the
mod and the second is the max distance. The game will trigger the effect at
a random distance between these two values.
- Personally I usually only have the smoke and fire
effects turned on and set up to be quite a distance out so they add
atmosphere only. I've uploaded the mod with this configuration. However I
have also supplied a example staticexplosions.txt with everything turned
on. The file is called staticexplosions.txt.alleffects.
If you wish to turn off a specific effect, then you need to comment out
the lines for the effect in file staticexplosions.txt. This is done by putting
"//" without the quotes at the start of each relevant line. An
effect block starts with the line [Emitter] and ends with the
line [end]. To remove an effect put // at the start of each line
relevant to the effect in question. To switch on an effect or unit remove
the comment markers from the lines for the block defining the effect. For
example, if I want to disable the effect which either creates a 52K mobile
AA turret at a ground location or a destroyer at a water location I would
change the lines below:
[Emitter]
P=0.002
Object="LuaScripts\WorldObjects\Vehicles\52k.txt"
WaterObject="LuaScripts\WorldObjects\Ships\destroyertype7.txt"
Alt=0
Range=4500,35000
[end]
to
//[Emitter]
// P=0.002
// Object="LuaScripts\WorldObjects\Vehicles\52k.txt"
// WaterObject="LuaScripts\WorldObjects\Ships\destroyertype7.txt"
// Alt=0
// Range=4500,35000
//[end]
- Note
that Alt = 0 should always be left that way as this is equivalent to sea
or ground level. While I haven't tried I assume a +ve
value will create the effect midair or perhaps
cause an error. Not sure.
- If
you wish to keep the ground effect but not have a water effect then
replace the line starting with "WaterObject="
with the line below, so for example in the above effect block for the 52K
AAA and destroyer if I wanted the 52K AAA but not the destroyer I would
replace the line with destroyertype7.txt in it with the line below:
WaterObject="LuaScripts\WorldObjects\TemplarGFX\templar_no_water.txt"
- Attachment
is set up to use with JSGME.
- I
suggest using a real editor like notepad++ to edit
staticexplosions.txt